package io.github.yotta.export.core.provider;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

/**
 * @author yotta
 * @date 2023/10/25 14:52
 */
public interface FileProvider {

    String DATE_FORMAT = "yyyyMMdd_HHmmss";

    String generateFilePath(String fileName, String ext);

    void saveFile(String filePath, File file) throws IOException;

    InputStream openFile(String filePath) throws IOException;


    String getFileUrl(String filePath);
}
